import request from '@/utils/request'

// 查询BwClass列表
export function listBwClass(query) {
    return request({
        url: '/api/v1/bw/classList',
        method: 'get',
        params: query
    })
}

// 查询BwClass详细
export function getBwClass (classId) {
    return request({
        url: '/api/v1/bw/class/' + classId,
        method: 'get'
    })
}


// 新增BwClass
export function addBwClass(data) {
    return request({
        url: '/api/v1/bw/class',
        method: 'post',
        data: data
    })
}

// 修改BwClass
export function updateBwClass(data) {
    return request({
        url: '/api/v1/bw/class',
        method: 'put',
        data: data
    })
}

// 删除BwClass
export function delBwClass(classId) {
    return request({
        url: '/api/v1/bw/class/' + classId,
        method: 'delete'
    })
}
